package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 卡权益表 初始化表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_cardserver")
@TableAlias("cardserver")
@ApiModel(value="BusCardserver对象", description="卡权益表 初始化表")
public class BusCardserver extends AbstractAllEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "cardserverId", type = IdType.ASSIGN_ID)
    private Long cardserverId;

    @ApiModelProperty(value = "1卡权益初始化，2直接为会员卡添加权益")
    private Integer cardserverType;

    @ApiModelProperty(value = "电子卡Id")
    private Long userGoodsId;

    @ApiModelProperty(value = "权益id")
    private Long serverId;

    @ApiModelProperty(value = "服务名称")
    private String serverName;

    @ApiModelProperty(value = "计费方式（1期间 2计次）")
    private Integer billingWay;

    @ApiModelProperty(value = "服务类型(1基础服务，2特殊服务)")
    private Integer serverType;

    @ApiModelProperty(value = "服务描述")
    private String serverDesc;

    @ApiModelProperty(value = "服务编码(特殊权益专用（pickup接机，sendup送机，delayrisk延误保障）)")
    private String serverCode;

    @ApiModelProperty(value = "数值类型(1次，2金额）")
    private Integer numType;

    @ApiModelProperty(value = "初始值")
    private String serverValue;

    private String useValue;

    @ApiModelProperty(value = "剩余值")
    private String restValue;

    @ApiModelProperty(value = "权益生效日期")
    private String initDate;

    @ApiModelProperty(value = "权益状态")
    private Integer cardserverState;

    @ApiModelProperty(value = "权益过期日期")
    private String expireDate;

}
